package cn.DesignModel.decorator;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Mocha extends CondimentDecorator{
    public Mocha(Beverage b) {
        beverage = b;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + "+Mocha";
    }

    @Override
    public double cost() {
        return beverage.cost() + 0.20;
    }

}
